﻿<div class="modal-header">
    <h3 class="modal-title">会员等级信息</h3>
</div>
<div class="modal-body">
    <h4 class="page-header text-info">
        用户特权特性
    </h4>
    <form class="form-horizontal">
        <div class="col-sm-2 clear-padding">
            <select ng-model="type" class="form-control">
                <option value="">所有相关</option>
                <option value="1">特权功能</option>
                <option value="2">特权代码</option>
                <option value="1">图标代码</option>
            </select>
        </div>
        <div class="col-lg-6 clear-padding">
            <div ce-enter="search" class="input-group">
                <input type="text" class="form-control" ng-model="Name" placeholder="搜素字段包括：特权名称">
                <span class="input-group-btn">
                    <button class="btn btn-default" ng-click="search(false)" type="button">搜索</button>
                </span>
            </div>
        </div>
    </form>
    <br /><br />
    <table class="table table-hover table-bordered p0m0">
        <thead>
        <tr>
            <th class="col-xs-1">图标代码</th>
            <th class="col-xs-1 ">特权功能</th>
            <th class="col-xs-1">特权代码</th>
        </tr>
        </thead>
        <tbody ng-show="!loadingState">
            <tr ng-repeat="item in list" ng-click="lookUp(item)" class="pointer">
                <td><img class="h20" ng-src="{{item.IcoUrl}}.png" /></td>
                <td>{{item.Name}}</td>
                <td>{{item.Code}}</td>
            </tr>
        </tbody>
        <tbody ng-show="loadingState">
            <tr>
                <td colspan="8" class="text-center">
                    <img width="60" src="/App/images/loading.gif" />
                </td>
            </tr>
        </tbody>
        <tfoot ng-show="!loadingState">
            <tr>
                <td colspan="8">
                    <div class="pull-right">
                        <div class="pagination-info"><span class="ng-binding">共有{{total}}条</span>， <span class="ng-binding">每页显示：{{size}}条</span></div>
                        <uib-pagination boundary-links="true" total-items="total" ng-model="current" max-size="10" ng-change="search(true)" items-per-page="size"
                                        class="pagination-sm" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
                    </div>
                </td>
            </tr>
        </tfoot>
    </table>
</div>
<div class="modal-footer">
    <button class="btn btn-danger" ng-click="close()">关闭窗口</button>
</div>
